import setting from '../setting.js';

export default function request({
	url,
	method = 'GET',
	params,
	data
}) {
	return uni.request({
		url: setting.baseUrl + url + '?userid=' + getApp().globalData.userId,
		method,
		header: {
			'contentType': 'application/json'
		},
		data,
	})
}
